home *** CD-ROM | disk | FTP | other *** search
- on initPrintOMatic
- global printer, gPropFont, gMonoFont, gXObjFile
- if the machineType = 256 then
- set gPropFont to "arial"
- set gMonoFont to "courier new"
- set gXObjFile to "pmatic.dll"
- else
- set gPropFont to "helvetica"
- set gMonoFont to "courier"
- set gXObjFile to "pmatic.xobj"
- end if
- if not objectp(printer) then
- openXLib(gXObjFile)
- set printer to PrintOMatic(mnew)
- end if
- if not objectp(printer) then
- alert("There is no currently selected printer. Printing features are disabled.")
- else
- end if
- end
-
- on terminatePrintOMatic
- global printer, gXObjFile
- if objectp(printer) then
- printer(mdispose)
- end if
- closeXLib(gXObjFile)
- end
-